import request from '@/utils/request';

// 端到端学习详细

// 查询端到端学习it路径图数据
export function getResourceChainOfStep(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/getResourceChainOfStep',
		method: 'get',
		params: query,
	});
}

// 添加节点
export function addResourceChain(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/addResourceChain',
		method: 'get',
		params: query,
	});
}

// 删除节点
export function deleteResourceChain(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/deleteResourceChain',
		method: 'get',
		params: query,
	});
}

// 确认或取消资源端到端关系
export function confirmRelation(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/confirm',
		method: 'get',
		params: query,
	});
}

// 展示资源端到端关系详情
export function showResourceChainInfo(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/showResourceChainInfo',
		method: 'get',
		params: query,
	});
}

// 获取资源前端资源列表--用来在加入黑名单的时候展示未确认和已确认 的列表信息
export function showBeforeResourceListInfo(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/showBeforeResourceListInfo',
		method: 'get',
		params: query,
	});
}

// 添加前端资源资源学习黑名单
export function addBeforeResourceBlackList(data) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/addBeforeResourceBlackList',
		method: 'post',
		data: data,
	});
}

// 查询系统和业务信息
export function getStepInitInfo(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/getStepInitInfo',
		method: 'get',
		params: query,
	});
}

// 同步步骤端到端学习结果至IT路径图
export function synchronousRourceChain(query) {
	return request({
		url: '/admin/modules/resourcechain/learner/detail/synchronousRourceChain',
		method: 'get',
		params: query,
	});
}
